import "@babel/polyfill";
import Vue from "vue";
import router from "@/router";
import "animate.css";

import "@/plugin/rem";
import "@/common/common.less";
import PageHeader from "@/pages/common/PageHeader";

Vue.component("PageHeader", PageHeader);
import ActivePanel from "batman-active-panel";

Vue.component("ActivePanel", ActivePanel);

import util from "@/lib/util";
import Toast from "@/weui/toast";

Vue.component("Toast", Toast)

// 模拟登录
if (process.env.NODE_ENV === "development" && process.env.TOKEN) {
    util.cookies.set("token", process.env.TOKEN);
}

let v = new Vue({
    el: "#app",
    router
});
